<?php /* Smarty version 2.6.20, created on 2013-05-25 01:50:41
         compiled from _core/_include/manage/productsdshow.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', '_core/_include/manage/productsdshow.tpl', 7, false),)), $this); ?>
function ProductSlideshow() {
};

ProductSlideshow.instance = function(callbackFunc) {
  var popupBox = new PopupBox(), _self = this;
  var popupBox2 = new PopupBox2();
  var model = Model.instance('<?php echo ((is_array($_tmp=@MODEL_NAME_PRODUCT_SLIDESHOW)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', '<?php echo ((is_array($_tmp=@MODEL_TITLE_PRODUCT_SLIDESHOW)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', '<?php echo ((is_array($_tmp=@MODEL_TYPE_PRODUCT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
');
  
  //Create model here...
  var state1 = State.instance(model, 0, 'not activate');
  var state2 = State.instance(model, 1, 'receive CUS photo requirement');
  var state3 = State.instance(model, 2, 'arrange designer');
  
  var state4 = State.instance(model, 3, 'translate and upload CUS requirement');
  var state5 = State.instance(model, 4, 'skipped');
  
  var state6 = State.instance(model, 5, 'download photos, complete and send the slideshow DVD');
  
  var state7 = State.instance(model, 6, 'receive slideshow DVD');
  var state8 = State.instance(model, 7, 'package and deliver');
  
  var state9 = State.instance(model, 8, 'receive slide show DVD');
  var state10 = State.instance(model, 9, 'pick up product');
  var state11 = State.instance(model, 10, 'product picked up');
  var state12 = State.instance(model, 11, 'solve CUS problem');
  var state13 = State.instance(model, 12, 'complete product');
  var transition1 = Transition.instance('receive', state2, state3, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 3);
  var transition2 = Transition.instance('rmd CUS', state2, state2, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.mixed, 7);
  var transition3 = Transition.instance('arrange', state3, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 0);
  
  //var transition4 = Transition.instance('uploaded', state4, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_CUSTOMER_SERVICE)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 15);
  //var transition5 = Transition.instance('completed', state5, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_CUSTOMER_SERVICE)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 5);

  var transition6 = Transition.instance('completed', state6, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_DESIGNER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);
  //var transition7 = Transition.instance('received', state7, state8, '<?php echo ((is_array($_tmp=@USER_TYPE_FACTORY)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);
  //var transition8 = Transition.instance('sent', state8, state9, '<?php echo ((is_array($_tmp=@USER_TYPE_FACTORY)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 2);
  //var transition9 = Transition.instance('received', state9, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);

  var transition10 = Transition.instance('pick up', state10, state11, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 9999);
  var transition11 = Transition.instance('rmd CUS', state10, state11, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.mixed, 7);
  var transition12 = Transition.instance('product fault report', state11, state12, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 5);
  var transition13 = Transition.instance('completed', state12, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_CUSTOMER_SERVICE)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 14);
  
  var transition14 = Transition.instance('receive', state2, state3, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 3);
  var transition15 = Transition.instance('rmd CUS', state2, state2, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.mixed, 7);
  var transition16 = Transition.instance('arrange', state3, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 0);
  //var transition17 = Transition.instance('uploaded', state4, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 15);
  //var transition18 = Transition.instance('completed', state5, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 5);

  var transition19 = Transition.instance('completed', state6, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);
  //var transition20 = Transition.instance('received', state7, state8, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);
  //var transition21 = Transition.instance('sent', state8, state9, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 2);
  //var transition22 = Transition.instance('received', state9, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);


  var transition23 = Transition.instance('pick up', state10, state11, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 9999);
  var transition24 = Transition.instance('rmd CUS', state10, state11, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.mixed, 7);
  var transition25 = Transition.instance('product fault report', state11, state12, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 5);
  var transition26 = Transition.instance('completed', state12, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 14);
  
  var transition27 = Transition.instance('receive', state2, state3, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 3);
  var transition28 = Transition.instance('rmd CUS', state2, state2, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.mixed, 7);
  var transition29 = Transition.instance('arrange', state3, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 0);
  //var transition30 = Transition.instance('uploaded', state4, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 15);
  //var transition31 = Transition.instance('completed', state5, state6, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 5);
  
  var transition32 = Transition.instance('completed', state6, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);
  
  //var transition33 = Transition.instance('received', state7, state8, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);
  //var transition34 = Transition.instance('sent', state8, state9, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 2);
  
  //var transition35 = Transition.instance('received', state9, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 7);
 
  var transition36 = Transition.instance('pick up', state10, state11, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 9999);
  var transition37 = Transition.instance('rmd CUS', state10, state11, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.mixed, 7);
  var transition38 = Transition.instance('product fault report', state11, state12, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 5);
  var transition39 = Transition.instance('completed', state12, state10, '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
', DlmanageUtils.normal, 14);
  
  transition2.validate = function(produce, user, date, options) { if (transition2.position != user.type) { return false; } if (SimpleDate.toStamp(date) < SimpleDate.toStamp(produce.deadline)) { return false; } else { return true; } };
  //transition8.validate = function(produce, user, date, options) { return false; };
  //transition9.validate = function(produce, user, date, options) { return false; };
  transition11.validate = function(produce, user, date, options) { if (transition11.position != user.type) { return false; } if (SimpleDate.toStamp(date) < SimpleDate.toStamp(produce.deadline)) { return false; } else { return true; } };

  transition15.validate = function(produce, user, date, options) { if (transition15.position != user.type) { return false; } if (SimpleDate.toStamp(date) < SimpleDate.toStamp(produce.deadline)) { return false; } else { return true; } };
  //transition21.validate = function(produce, user, date, options) { return false; };
 //transition22.validate = function(produce, user, date, options) { return false; };
  transition24.validate = function(produce, user, date, options) { if (transition24.position != user.type) { return false; } if (SimpleDate.toStamp(date) < SimpleDate.toStamp(produce.deadline)) { return false; } else { return true; } };

  transition28.validate = function(produce, user, date, options) { if (transition28.position != user.type) { return false; } if (SimpleDate.toStamp(date) < SimpleDate.toStamp(produce.deadline)) { return false; } else { return true; } };
  //transition34.validate = function(produce, user, date, options) { return false; };
  //transition35.validate = function(produce, user, date, options) { return false; };
  transition37.validate = function(produce, user, date, options) { if (transition37.position != user.type) { return false; } if (SimpleDate.toStamp(date) < SimpleDate.toStamp(produce.deadline)) { return false; } else { return true; } };

  transition1.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                      options = {};
                                                                                    }
                                                                                    var previous = MiscUtils.clone(produce);
                                                                                    options.previous = previous;
                                                                                    var div = document.createElement('div');
                                                                                    var func1 = function() { if (produce._method == '') {
                                                                                                               window.alert('CAN NOT BE EMPTY');
                                                                                                               return;
                                                                                                             }
                                                                                                             if (!options) {
                                                                                                               options = {};
                                                                                                             }
                                                                                                             options.extra = produce._method;
                                                                                                             DlmanageUtils.operate(transition1, pos, callbackFunc, produce, user, date, options);
                                                                                                             popupBox2._close();
                                                                                                           };
                                                                                    var func2 = function() { popupBox2._close();
                                                                                                             callbackFunc();
                                                                                                           };
                                                                                    MiscUtils.dialog(popupBox2, pos, div, func1, func2, { t: 'Method', width: 520, height: 80, func: func2});
                                                                                    new DialogMethod(div, produce, null);
                                                                                  };
  
  transition3.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                      options = {};
                                                                                    }
                                                                                    var previous = MiscUtils.clone(produce);
                                                                                    options.previous = previous;
                                                                                    var div = document.createElement('div');
                                                                                    var func1 = function() { if (!options) {
                                                                                                               options = {};
                                                                                                             }
                                                                                                             if (produce.user_account == '') {
                                                                                                               window.alert('选择一个设计师');
                                                                                                               return;
                                                                                                             }
                                                                                                             options.extra = produce.user_account;
                                                                                                             DlmanageUtils.operate(transition3, pos, callbackFunc, produce, user, date, options);
                                                                                                             popupBox._close();
                                                                                                           };
                                                                                    var func2 = function() { popupBox._close();
                                                                                                             callbackFunc();
                                                                                                           };
                                                                                    MiscUtils.dialog(popupBox, pos, div, func1, func2);
                                                                                    new DialogAssignee(div, produce, { php: '<?php echo ((is_array($_tmp=@FACTORY)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
/customphp/mysqlread.php', condition: 'd.type = \'<?php echo ((is_array($_tmp=@USER_TYPE_DESIGNER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
\'' });
                                                                                  };
  
  transition10.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                       options = {};
                                                                                     }
                                                                                     var previous = MiscUtils.clone(produce);
                                                                                     options.previous = previous;
                                                                                     options.stage = 4; 
                                                                                     options.func = function(div, customer, options) { new DialogLocation(div, customer, options); };
                                                                                     DlmanageUtils.operate3(transition10, pos, callbackFunc, produce, user, date, options);
                                                                                   };
                                                                                   
  transition14.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                       options = {};
                                                                                     }
                                                                                     var previous = MiscUtils.clone(produce);
                                                                                     options.previous = previous;
                                                                                     var div = document.createElement('div');
                                                                                     var func1 = function() { if (produce._method == '') {
                                                                                                                window.alert('CAN NOT BE EMPTY');
                                                                                                                return;
                                                                                                              }
                                                                                                              if (!options) {
                                                                                                                options = {};
                                                                                                              }
                                                                                                              options.extra = produce._method;
                                                                                                              DlmanageUtils.operate(transition14, pos, callbackFunc, produce, user, date, options);
                                                                                                              popupBox2._close();
                                                                                                            };
                                                                                     var func2 = function() { popupBox2._close();
                                                                                                              callbackFunc();
                                                                                                            };
                                                                                     MiscUtils.dialog(popupBox2, pos, div, func1, func2, { t: 'Method', width: 520, height: 80, func: func2});
                                                                                     new DialogMethod(div, produce, null);
                                                                                   };

  transition16.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                       options = {};
                                                                                     }
                                                                                     var previous = MiscUtils.clone(produce);
                                                                                     options.previous = previous;
                                                                                     var div = document.createElement('div');
                                                                                     var func1 = function() { if (!options) {
                                                                                                                options = {};
                                                                                                              }
                                                                                                              if (produce.user_account == '') {
                                                                                                                window.alert('选择一个设计师');
                                                                                                                return;
                                                                                                              }
                                                                                                              options.extra = produce.user_account;
                                                                                                              DlmanageUtils.operate(transition16, pos, callbackFunc, produce, user, date, options);
                                                                                                              popupBox._close();
                                                                                                            };
                                                                                     var func2 = function() { popupBox._close();
                                                                                                              callbackFunc();
                                                                                                            };
                                                                                     MiscUtils.dialog(popupBox, pos, div, func1, func2);
                                                                                     new DialogAssignee(div, produce, { php: '<?php echo ((is_array($_tmp=@FACTORY)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
/customphp/mysqlread.php', condition: 'd.type = \'<?php echo ((is_array($_tmp=@USER_TYPE_DESIGNER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
\'' });
                                                                                   };

  transition23.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                      options = {};
                                                                                    }
                                                                                    var previous = MiscUtils.clone(produce);
                                                                                    options.previous = previous;
                                                                                    options.stage = 4; 
                                                                                    options.func = function(div, customer, options) { new DialogLocation(div, customer, options); };
                                                                                    DlmanageUtils.operate3(transition23, pos, callbackFunc, produce, user, date, options);
                                                                                  };
transition27.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                    options = {};
                                                                                  }
                                                                                  var previous = MiscUtils.clone(produce);
                                                                                  options.previous = previous;
                                                                                  var div = document.createElement('div');
                                                                                  var func1 = function() { if (produce._method == '') {
                                                                                                             window.alert('CAN NOT BE EMPTY');
                                                                                                             return;
                                                                                                           }
                                                                                                           if (!options) {
                                                                                                             options = {};
                                                                                                           }
                                                                                                           options.extra = produce._method;
                                                                                                           DlmanageUtils.operate(transition27, pos, callbackFunc, produce, user, date, options);
                                                                                                           popupBox2._close();
                                                                                                         };
                                                                                  var func2 = function() { popupBox2._close();
                                                                                                           callbackFunc();
                                                                                                         };
                                                                                  MiscUtils.dialog(popupBox2, pos, div, func1, func2, { t: 'Method', width: 520, height: 80, func: func2});
                                                                                  new DialogMethod(div, produce, null);
                                                                                };

transition29.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                    options = {};
                                                                                  }
                                                                                  var previous = MiscUtils.clone(produce);
                                                                                  options.previous = previous;
                                                                                  var div = document.createElement('div');
                                                                                  var func1 = function() { if (!options) {
                                                                                                             options = {};
                                                                                                           }
                                                                                                           if (produce.user_account == '') {
                                                                                                             window.alert('选择一个设计师');
                                                                                                             return;
                                                                                                           }
                                                                                                           options.extra = produce.user_account;
                                                                                                           DlmanageUtils.operate(transition29, pos, callbackFunc, produce, user, date, options);
                                                                                                           popupBox._close();
                                                                                                         };
                                                                                  var func2 = function() { popupBox._close();
                                                                                                           callbackFunc();
                                                                                                         };
                                                                                  MiscUtils.dialog(popupBox, pos, div, func1, func2);
                                                                                  new DialogAssignee(div, produce, { php: '<?php echo ((is_array($_tmp=@FACTORY)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
/customphp/mysqlread.php', condition: 'd.type = \'<?php echo ((is_array($_tmp=@USER_TYPE_DESIGNER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
\'' });
                                                                                };

transition36.operate = function(pos, callbackFunc, produce, user, date, options) { if (!options) {
                                                                                   options = {};
                                                                                 }
                                                                                 var previous = MiscUtils.clone(produce);
                                                                                 options.previous = previous;
                                                                                 options.stage = 4; 
                                                                                 options.func = function(div, customer, options) { new DialogLocation(div, customer, options); };
                                                                                 DlmanageUtils.operate3(transition36, pos, callbackFunc, produce, user, date, options);
                                                                               };
  model.states = [ state1, state2, state3, state4, state5, state6, state7, state8, state9, state10, state11, state12, state13 ];
  /*model.transitions = [ transition1, transition2, transition3,  transition6, transition7, transition8, transition9, transition10, transition11, transition12, transition13,transition14, transition15, transition16,  transition19, transition20, 
                        transition21, transition22, transition23, transition24, transition25, transition26, transition27, transition28, transition29, transition30, transition31, transition32, transition33,transition34, transition35, transition36, transition37, transition38, transition39 ];*/
    model.transitions = [ transition1, transition2, transition3,transition6, transition10, transition11, transition12, transition13,transition14, transition15, transition16,  
                          transition19,transition23, transition24, transition25, transition26, transition27, transition28, transition29, transition32,transition36, transition37, transition38, transition39 ];

  return model;
};